package com.example.springcloud.alibaba.service.fallback;

import com.example.springcloud.alibaba.service.PaymentService;
import com.example.springcloud.entities.CommonResult;
import com.example.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> getPayment(Long id) {
        return new CommonResult<Payment>(444,"服务器降级返回,----PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}
